import request from "@/utils/request"
//获取会话列表
export const getMessageList = () => {
    return request({
        url: '/marketers/message/list',
        method: 'get'
    })
}
// 获取会话消息
export const getUserMessageList = (userId: number) => {
    return request({
        url: `/marketers/message/${userId}`,
        method: 'get'
    })
}
// 新建会话
export const addUserSession = (userId: number) => {
    return request({
        url: `/marketers/message/addSession/${userId}`,
        method: 'post'
    })
}